module.exports = (app) => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const MergeQuestionConclusion = app.model.define(
    'MergeQuestionConclusion',
    {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      uuid: { type: STRING(36), unique: true },
      FKQuestion: { type: INTEGER, field: 'fk_question' },
      FKConclusion: { type: INTEGER, field: 'fk_conclusion' },
      createdAt: { type: DATE, field: 'created_at' },
      updatedAt: { type: DATE, field: 'updated_at' },
    },
    {
      tableName: 'merge_question_conclusion'
    }
  );

  return MergeQuestionConclusion;
};
